impedance measurement and pain evaluation